import java.*;
public class FrameMenuPpal extends javax.swing.JFrame { 
    
    FrameUsuarios Fusuarios = new FrameUsuarios();
    FrameCliente FClientes = new FrameCliente();
    FrameProveedor FProveedores = new FrameProveedor();
    FrameProducto FProductos = new FrameProducto();
    FrameVenta FVentas = new FrameVenta();
    FrameReportes FReportes = new FrameReportes();
    FrameRespaldos Frespaldo = new FrameRespaldos();
    
       
    /** Creates new form FramePrincipal */
    public FrameMenuPpal() {
        initComponents();
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        btnSalir = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        txtInformacion = new javax.swing.JTextArea();
        jSeparator1 = new javax.swing.JSeparator();
        jLabel1 = new javax.swing.JLabel();
        jMenuBar1 = new javax.swing.JMenuBar();
        MenuVentas = new javax.swing.JMenu();
        MenuVenta = new javax.swing.JMenuItem();
        NemuAdministracion = new javax.swing.JMenu();
        MenuClientes = new javax.swing.JMenuItem();
        MenuProveedores = new javax.swing.JMenuItem();
        MenuUsuarios = new javax.swing.JMenuItem();
        MenuProductos = new javax.swing.JMenuItem();
        MenuReportes = new javax.swing.JMenuItem();
        MenuRespaldos = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        btnSalir.setText("Salir");
        btnSalir.setToolTipText("Salir de la aplicación");
        btnSalir.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                btnSalirMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                btnSalirMouseExited(evt);
            }
        });
        btnSalir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnSalirActionPerformed(evt);
            }
        });

        txtInformacion.setColumns(20);
        txtInformacion.setRows(5);
        jScrollPane1.setViewportView(txtInformacion);

        jLabel1.setIcon(new javax.swing.ImageIcon("C:\\Documents and Settings\\gdlemarq\\My Documents\\Escuela\\7 cuatrimestre\\Des Software OB\\Project pictures\\essentials.jpg")); // NOI18N
        jLabel1.setText(" ");

        jMenuBar1.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        MenuVentas.setIcon(new javax.swing.ImageIcon("C:\\Documents and Settings\\gdlemarq\\My Documents\\My Pictures\\Sistema\\png\\cashbox_24.png")); // NOI18N
        MenuVentas.setText("Ventas");
        MenuVentas.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                MenuVentasMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                MenuVentasMouseExited(evt);
            }
        });
        MenuVentas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuVentasActionPerformed(evt);
            }
        });

        MenuVenta.setIcon(new javax.swing.ImageIcon("C:\\Documents and Settings\\gdlemarq\\My Documents\\My Pictures\\Sistema\\png\\NORMAL\\24\\cashbox_24.png")); // NOI18N
        MenuVenta.setText("Ventas");
        MenuVenta.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                MenuVentaMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                MenuVentaMouseExited(evt);
            }
        });
        MenuVenta.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuVentaActionPerformed(evt);
            }
        });
        MenuVentas.add(MenuVenta);

        jMenuBar1.add(MenuVentas);

        NemuAdministracion.setIcon(new javax.swing.ImageIcon("C:\\Documents and Settings\\gdlemarq\\My Documents\\My Pictures\\Sistema\\png\\web_16.png")); // NOI18N
        NemuAdministracion.setText("Administración");
        NemuAdministracion.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                NemuAdministracionMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                NemuAdministracionMouseExited(evt);
            }
        });

        MenuClientes.setIcon(new javax.swing.ImageIcon("C:\\Documents and Settings\\gdlemarq\\My Documents\\My Pictures\\Sistema\\png\\admin_24.png")); // NOI18N
        MenuClientes.setText("Clientes");
        MenuClientes.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                MenuClientesMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                MenuClientesMouseExited(evt);
            }
        });
        MenuClientes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuClientesActionPerformed(evt);
            }
        });
        NemuAdministracion.add(MenuClientes);

        MenuProveedores.setIcon(new javax.swing.ImageIcon("C:\\Documents and Settings\\gdlemarq\\My Documents\\My Pictures\\Sistema\\png\\admin_24.png")); // NOI18N
        MenuProveedores.setText("Proveedores");
        MenuProveedores.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                MenuProveedoresMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                MenuProveedoresMouseExited(evt);
            }
        });
        MenuProveedores.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuProveedoresActionPerformed(evt);
            }
        });
        NemuAdministracion.add(MenuProveedores);

        MenuUsuarios.setIcon(new javax.swing.ImageIcon("C:\\Documents and Settings\\gdlemarq\\My Documents\\My Pictures\\Sistema\\gif\\admin_24.gif")); // NOI18N
        MenuUsuarios.setText("Usuarios");
        MenuUsuarios.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                MenuUsuariosMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                MenuUsuariosMouseExited(evt);
            }
        });
        MenuUsuarios.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuUsuariosActionPerformed(evt);
            }
        });
        NemuAdministracion.add(MenuUsuarios);

        MenuProductos.setIcon(new javax.swing.ImageIcon("C:\\Documents and Settings\\gdlemarq\\My Documents\\My Pictures\\Sistema\\gif\\Ventas.gif")); // NOI18N
        MenuProductos.setText("Productos");
        MenuProductos.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                MenuProductosMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                MenuProductosMouseExited(evt);
            }
        });
        MenuProductos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuProductosActionPerformed(evt);
            }
        });
        NemuAdministracion.add(MenuProductos);

        MenuReportes.setIcon(new javax.swing.ImageIcon("C:\\Documents and Settings\\gdlemarq\\My Documents\\My Pictures\\Sistema\\gif\\notes_24.gif")); // NOI18N
        MenuReportes.setText("Reportes");
        MenuReportes.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                MenuReportesMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                MenuReportesMouseExited(evt);
            }
        });
        MenuReportes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuReportesActionPerformed(evt);
            }
        });
        NemuAdministracion.add(MenuReportes);

        MenuRespaldos.setIcon(new javax.swing.ImageIcon("C:\\Documents and Settings\\gdlemarq\\My Documents\\My Pictures\\Sistema\\gif\\24\\safety_box_24.gif")); // NOI18N
        MenuRespaldos.setText("Respaldos");
        MenuRespaldos.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                MenuRespaldosMouseEntered(evt);
            }
        });
        MenuRespaldos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuRespaldosActionPerformed(evt);
            }
        });
        NemuAdministracion.add(MenuRespaldos);

        jMenuBar1.add(NemuAdministracion);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 303, Short.MAX_VALUE)
                    .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 303, Short.MAX_VALUE)
                    .addComponent(btnSalir, javax.swing.GroupLayout.Alignment.LEADING))
                .addContainerGap())
            .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 323, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(1, 1, 1)
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 162, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 80, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btnSalir)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void MenuUsuariosMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_MenuUsuariosMouseEntered
        txtInformacion.setText("\n"+"Manejo de usuarios\n"+"(Altas, bajas, edición)\n");
    }//GEN-LAST:event_MenuUsuariosMouseEntered

    private void MenuUsuariosMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_MenuUsuariosMouseExited
        txtInformacion.setText("");
    }//GEN-LAST:event_MenuUsuariosMouseExited

    private void MenuUsuariosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuUsuariosActionPerformed
        Fusuarios.setVisible(true);
    }//GEN-LAST:event_MenuUsuariosActionPerformed

    private void MenuClientesMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_MenuClientesMouseEntered
        txtInformacion.setText("\n   Manejo de clientes\n   (Altas, bajas, edición)");
    }//GEN-LAST:event_MenuClientesMouseEntered

    private void MenuClientesMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_MenuClientesMouseExited
        txtInformacion.setText("");
    }//GEN-LAST:event_MenuClientesMouseExited

    private void MenuClientesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuClientesActionPerformed
        FClientes.setVisible(true);
    }//GEN-LAST:event_MenuClientesActionPerformed

    private void MenuProveedoresMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_MenuProveedoresMouseEntered
        txtInformacion.setText("\n"+"Manejo de proveedores\n"+"(Altas, bajas, edición)\n");
    }//GEN-LAST:event_MenuProveedoresMouseEntered

    private void MenuProveedoresMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_MenuProveedoresMouseExited
        txtInformacion.setText("");
    }//GEN-LAST:event_MenuProveedoresMouseExited

    private void MenuProveedoresActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuProveedoresActionPerformed
        FProveedores.setVisible(true);
    }//GEN-LAST:event_MenuProveedoresActionPerformed

    private void MenuVentasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuVentasActionPerformed
        // Aqui no va nada.
    }//GEN-LAST:event_MenuVentasActionPerformed

    private void MenuVentasMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_MenuVentasMouseEntered
        // TODO add your handling code here:
        txtInformacion.setText("\n\n     Módulo de ventas y facturación");
    }//GEN-LAST:event_MenuVentasMouseEntered

    private void MenuVentasMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_MenuVentasMouseExited
        // TODO add your handling code here:
        txtInformacion.setText("");
    }//GEN-LAST:event_MenuVentasMouseExited

    private void MenuVentaMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_MenuVentaMouseEntered
        // TODO add your handling code here:
        txtInformacion.setText("\n\n     Ir a módulo de ventas y facturación");
        
    }//GEN-LAST:event_MenuVentaMouseEntered

    private void MenuVentaMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_MenuVentaMouseExited
        // TODO add your handling code here:
        txtInformacion.setText("");
    }//GEN-LAST:event_MenuVentaMouseExited

    private void btnSalirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSalirActionPerformed
        // TODO add your handling code here:
        
        this.setVisible(false);
        
        
    }//GEN-LAST:event_btnSalirActionPerformed

    private void NemuAdministracionMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_NemuAdministracionMouseEntered
        // TODO add your handling code here:
        txtInformacion.setText("\n   Manejo de Clientes, Proveedores, Productos\n" +
                "   Almacé&n, Usuarios, Respaldos, Reportes");
    }//GEN-LAST:event_NemuAdministracionMouseEntered

    private void NemuAdministracionMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_NemuAdministracionMouseExited
        // TODO add your handling code here:
        txtInformacion.setText("");
    }//GEN-LAST:event_NemuAdministracionMouseExited

    private void MenuProductosMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_MenuProductosMouseEntered
        // TODO add your handling code here:
        txtInformacion.setText("\n\n   Altas, bajas y edición de productos");
    }//GEN-LAST:event_MenuProductosMouseEntered

    private void MenuProductosMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_MenuProductosMouseExited
        // TODO add your handling code here:
        txtInformacion.setText("");
    }//GEN-LAST:event_MenuProductosMouseExited

    private void MenuReportesMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_MenuReportesMouseEntered
        // TODO add your handling code here:
        txtInformacion.setText("\n   Sección de reportes\n");
    }//GEN-LAST:event_MenuReportesMouseEntered

    private void MenuReportesMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_MenuReportesMouseExited
        // TODO add your handling code here:
        txtInformacion.setText("");
    }//GEN-LAST:event_MenuReportesMouseExited

    private void MenuRespaldosMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_MenuRespaldosMouseEntered
        // TODO add your handling code here:
        txtInformacion.setText("\n   Resaldo de la información\n   Generar respaldo\n   Recuperar respaldo");
    }//GEN-LAST:event_MenuRespaldosMouseEntered

    private void btnSalirMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnSalirMouseEntered
        // TODO add your handling code here:
        txtInformacion.setText("Salir de la aplicación");
    }//GEN-LAST:event_btnSalirMouseEntered

    private void btnSalirMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnSalirMouseExited
        // TODO add your handling code here:
        txtInformacion.setText("");
    }//GEN-LAST:event_btnSalirMouseExited

    private void MenuProductosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuProductosActionPerformed
        FProductos.setVisible(true);
    }//GEN-LAST:event_MenuProductosActionPerformed

    private void MenuVentaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuVentaActionPerformed
        // TODO add your handling code here:
                FVentas.setVisible(true);
    }//GEN-LAST:event_MenuVentaActionPerformed

    private void MenuReportesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuReportesActionPerformed
        // TODO add your handling code here:
                FReportes.setVisible(true);
    }//GEN-LAST:event_MenuReportesActionPerformed

    private void MenuRespaldosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuRespaldosActionPerformed
        // TODO add your handling code here:
        Frespaldo.setVisible(true);
    }//GEN-LAST:event_MenuRespaldosActionPerformed
    
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new FramePrincipal().setVisible(true);
            }
        });
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuItem MenuClientes;
    private javax.swing.JMenuItem MenuProductos;
    private javax.swing.JMenuItem MenuProveedores;
    private javax.swing.JMenuItem MenuReportes;
    private javax.swing.JMenuItem MenuRespaldos;
    private javax.swing.JMenuItem MenuUsuarios;
    private javax.swing.JMenuItem MenuVenta;
    private javax.swing.JMenu MenuVentas;
    private javax.swing.JMenu NemuAdministracion;
    private javax.swing.JButton btnSalir;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JTextArea txtInformacion;
    // End of variables declaration//GEN-END:variables
    
}
